{{include file="../tools/upload.htm"}} 
{{include file="../tools/jquery_validator2.htm"}} 
<style>
.box{width:180px !important;}
hr{
	
	width:100%;
	height:3px;
	margin:20px 0;
}
</style>
<script type="text/javascript">
     $(function () {
	
		var swf = swfUpload({
					   size:10,
					   limit:1,
					   type:'*.jpg;*.png;*.gif',
					   button_id:'valid_pic',
					  // debug:true,
					  
					   index:0,   //第几个实例
					   set_input:true, //是否将文件信息写到input中（json）
					   data_type:'text'
				   });
		 $('#user_valid_pic').validate({

				rules: {
					valid_pic: {
						required: true
					}
				},
		
				messages: {
					valid_pic: {
						required: "请上传您工作证的照片"
					}
					
        	},
			success: function(element) {
				element
				.text('OK!').addClass('valid')
				.closest('.control-group').removeClass('error').addClass('success');
  			}
    	});	
		$('#user_valid_oa').validate({

				rules: {
					user_name: {
						required: true
					},
					passwd: {
						required: true
					}
				},
		
				
			success: function(element) {
				element
				.text('OK!').addClass('valid')
				.closest('.control-group').removeClass('error').addClass('success');
  			}
    	});	
		
		 
           
 });
</script>
<div class="userbox">
  <h2>每位员工仅限注册一个用户，请在下方完成认证</h2>
  <div class="left none userstore">
  <form id="user_valid_oa" method="post">
    <table>
      <tr>
        <td colspan="2" class="nameorange pointer">方法一:通过OA账户验证</td>
      </tr>
      <tr>
        <td width="80">用户OA名：</td>
        <td width="420"><input type="text"   name="user_name"></td>
      </tr>
      <tr>
        <td>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
        <td width="420"><input type="text"   name="passwd"></td>
      </tr>
      <tr>
      	<td colspan="2"> 
         <input type="hidden" value="user_valid_oa"  name="act" >
        <input type="submit" value=""  class="zhuce"></td>
      </tr>
    </table>
    </form>
  </div>
  <hr class="f_left"/>
  <div class="left usersdianz">
  <form id="user_valid_pic" method="post">
    <table>
      <tr>
        <td colspan="2" class="nameorange pointer" >通过上传工作证验证</td>
      </tr>
      <tr>
        <td  colspan="2">请拍摄您工作证的照片并上传：</td>
        
      </tr>
      <tr>
      <td  colspan="2"><div id="valid_pic_res" class="box"> </div>
          <span  id="valid_pic"  > </span>
          <input type="text" name="valid_pic" id="valid_pics" class="size0" /></td>
      </tr>
      <tr class="none">
        <td colspan="2">后台将对您上传的信息进行审核。
          违规注册将会受到账户封停、积分清零等处罚。 </td>
      </tr>
      <tr>
      	<td colspan="2">
       <input type="hidden"  value="user_valid_pic" name="act">
        <input type="submit"  value="" class="zhuce"></td>
      </tr>
    </table>
    </form>
  </div>
  <!--left end--> 
  
 
  <!--right end--> 
  
</div>
